






<div class="admin-biaogelist">

    <div class="listbiaoti am-cf">
        <ul class="am-icon-flag on"> 任务查看</ul>

        <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">任务查看</a></dl>

        <!--<dl>
          <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 补充线订单</button>
        </dl>-->
        <!--这里打开的是新页面-->

    </div>

    <div class="fbneirong">
        <form class="am-form jdtask">


            <div class="am-form-group am-cf">
                <div class="zuo">商品链接：</div>
                <input type="hidden" name="id" value="<?php echo $id ?>">
                <div class="you">
                    <input type="text" class="am-input-sm"  name="link"    value="<?php echo $link;  ?>"      placeholder="请输入链接">
                </div>
              <div    id="bufa" class="am-btn am-btn-secondary am-radius">再次发布</div>
            </div>
            <div class="am-form-group am-cf">
                <div class="zuo">商品名称：</div>
                <div class="you">
                    <input type="text"   name="goods_name" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $goods_name;  ?>"    placeholder="请输入商品名称">
                </div>
            </div>
            <div class="am-form-group am-cf">
                <div class="zuo">客单价：</div>
                <div class="you">
                    <input type="text"   name="price" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $price;  ?>"    placeholder="请输入客单价">
                </div>
            </div>

            <div class="am-form-group am-cf">
                <div class="zuo">付款价格：</div>
                <div class="you">
                    <input type="text"   name="pay_price" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $pay_price;  ?>"    placeholder="请输入付款价格">
                </div>
            </div>

            <div class="am-form-group am-cf">
                <div class="zuo">任务单量：</div>
                <div class="zuo">
                    <input type="text"   name="number" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $number;  ?>"    placeholder="请输入任务单量">
                </div>

                <div class="zuo">每单数量：</div>
                <div class="zuo">
                    <input type="text"   name="each_single" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $each_single;  ?>"    placeholder="请输入每单数量">
                </div>


                <div class="zuo">搜索关键字：</div>
                <div class="zuo">
                    <input type="text"   name="keyword" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $keyword;  ?>"    placeholder="请输入关键字">
                </div>
            </div>


            <div class="am-form-group am-cf">
                <div class="zuo">优惠券：</div>
                <div class="zuo">
                    <input type="text"   name="coupon" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $coupon;  ?>"    placeholder="请输入优惠券">
                </div>

                <div class="zuo">SKU：</div>
                <div class="zuo">
                    <input type="text"   name="sku" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $sku;  ?>"    placeholder="请输入SKU">
                </div>

            </div>

            <div class="am-form-group am-cf">
                <div class="zuo">备注说明：</div>
                <div class="you">
                    <input type="text"   name="remarks" class="am-input-sm" id="doc-ipt-email-1"   value="<?php echo $remarks;  ?>"    placeholder="请输入备注">
                </div>
            </div>


         <!--   <div class="am-form-group am-cf" style="margin-left: 100px;">
                <div class="zuo">任务所需本金：<span class="needmoney">0</span></div>
                <div class="zuo">任务所需金币：<span class="needgold">0</span></div>
            </div>-->



            <div class="am-form-group am-cf">
                <div class="you" style="margin-left: 11%;">
                  <div    id="fabu" class="am-btn am-btn-secondary am-radius">关闭</div>

                </div>
            </div>
        </form>



    </div>



   <script>
       var on_request=false;




       $("#bufa").click(function () {
           fabu();
       });

       function fabu() {
           if (on_request) {
               return;
           }
           var r =confirm("确认再次发布该任务?");

           if(!r){
               return;
           }


           on_request = true;
           var url = "<?php echo base_url(); ?>/Business/againtask";
           var postdata = {};
           var id=$("input[name='id']").val();

           postdata['id'] = id;

           $.post(url, postdata, function (data) {
               on_request = false;
               if(data.status==0){
                   alert("任务发布成功")
               } else{
                   alert(data.message)
               }


           },"json");
       }





   </script>








    <div class="foods">
        <ul>
            版权所有@2015.
        </ul>
        <dl>
            <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
        </dl>
    </div>




</div>

</div>




</div>


<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>-->
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/rem.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/respond.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.legacy.js"></script>


<!--[if (gte IE 9)|!(IE)]><!-->
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>